package cn.jiyun.user.mapper;

import cn.jiyun.user.pojo.Users;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserMapper {
    public void insertUser(Users users);

    //查询所有
    public List<Users> listUser();

    Users login(Users users);

    @Select("select * from users where id=#{id}")
    Users findById(@Param("id") Integer id);


    void updateUsers(Users users);


    @Delete("delete from users where id=#{id}")
    void deleteById(@Param("id") Integer id);
}